package com.msb.pojo;

public class Book {
    private int id;
    private String name;

    public int getId() {
        return id;
    }

    public void setId2(int id) {
        System.out.println("id的setter方法");
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName2(String name) {
        System.out.println("name的setter方法");
        this.name = name;
    }

    public Book() {
        System.out.println("空构造器");
    }

    public Book(int id2, String name2) {
        this.id = id2;
        this.name = name2;
        System.out.println("有参构造器");
    }
}
